﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DomainModel;
using Utils;
using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;

namespace WebUI.Models
{
    public class IndShotOriginalViewModel: BaseViewModel
    {
        public IndShotOriginalViewModel(Shot shot)
            : base(new { Shot = shot})
        { }

        public Shot Shot { get; set; }
        
        public string ShotOrgUrl { get; set; }
        

        protected override void SetVarsWhichDependOnDynamicParams(dynamic dynParams)
        {
            Shot = dynParams.Shot;

            ShotOrgUrl = ImageUtils.GetShotRelativeUrl(Shot.IndID, Shot.ShotID, ShotSizeEnum.Shot_Org, Shot.FileExtension);
        }

        
    }
}